#include<stdio.h>
#define maxe 10
int arr[maxe] = {1,3,45,67,45,67,89,3,56,7};

int main()
{
	int x = 0, n = 0;
	//while(scanf_s("%d",&x )!=EOF);
	//arr[n++];
	int i = 0;
	int j = 0;
	int temp;
	//printf("%d", arr[i]);
	for (i = 0; i < 9; i++)
	{
		
		for (j = 0; j < 9-i; j++)
		{
			if (arr[j] < arr[j+1])
			{
				temp = arr[j];
				 arr[j]=arr[j+1];
				 arr[j+1] = temp;

			}
		}
		
	}
	int a = 0;
	for(a;a<=9;a++)
	printf("%d ", arr[a]);
		return 0;
}